﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="false" CodeBehind="OrderAdd.aspx.vb" Inherits="ACompany.OrderProcessing.UI.MVCWeb.OrderAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<%  Using Html.BeginForm()%>
<h2>Create an Order</h2>

<ol>
    <li>
        Select a Customer:
        <p>
        <%=Html.DropDownList("Customers", ViewData("Customers"))%>
        <%=Html.ValidationMessage("Customer", "*")%>
        </p>
    </li>
    <li>
        Select some products
        <p>
        <%=Html.ListBox("Products", ViewData("Products"))%>
        <%=Html.ValidationMessage("Items", "*")%>
        </p>
    </li>
</ol>

<input type="submit" value="Save" />

<% End Using%>
</asp:Content>
